using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using Edge.Business.Domain;
using Edge.Common.ComponentModel;

namespace Shop.Business.Domain.Catalog
{
    [Serializable]
    public class MenuItemFilter : BaseFilter, ITextSearchSupported
    {
        private string keyword;
        private string query;
        private Nullable<int> parent;

        public string GetText()
        {
            return keyword;
        }

        public void SetText(string text)
        {
            keyword = text;
        }

        [Browsable(true),
         Description("Keyword"),
         Required(false),
         Category("Advanced Search"),
         Order(1)]
        public string Keyword
        {
            get { return keyword; }
            set { keyword = value; }
        }

        public Nullable<int> Parent
        {
            get { return parent; }
            set { parent = value; }
        }

        public string Query
        {
            get { return query; }
            set { query = value; }
        }
    }
}